package com.love.cloud.common.mybatis.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

/**
 * @author hongdongqu
 * @version 1.0
 */
@Data
@MappedSuperclass
public class TreeEntity extends SimpleBaseEntity {
    private static final long serialVersionUID = 1L;
    /**
     * 是否展开 1:是 0：否
     */
    @Column(name="expand",columnDefinition = "VARCHAR(255) COMMENT '是否展开 1:是 0：否'")
    protected String expand;
    /**
     * 父节点id
     */
    @Column(name="parent_id",columnDefinition = "bigint(20) COMMENT '父节点id'")
    protected Long parentId;
    /**
     * 排序
     */
    @Column(name="sort", columnDefinition = "INT COMMENT '排序' default 0")
    protected Integer sort;
    /**
     * 节点路径
     */
    @Column(name="path", columnDefinition = "VARCHAR(255) COMMENT '节点路径'")
    protected String path;
}
